// Learn TypeScript:
//  - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html

import { achieveType } from "../../../../script/game/gameType";
import { ListItem } from "../../../../script/util/ListView/ListItem";
import { WinBase } from "../../../../script/wins/WinBase";

const {ccclass, property} = cc._decorator;

@ccclass
export default class NewClass extends WinBase {

    @property(cc.Sprite)
    circle: cc.Sprite = null;

    @property(cc.Label)
    text: cc.Label = null;
    start () {

    }
    setSize(size) {
        this.node.scale = size;
    }
    setColor(color: cc.Color) {
        this.circle.node.color = color;
    }
    setText(text: string) {
        this.text.string = text;
    }
    
}
